

<template>
<div style="height: 100vh;width: 100vw;overflow: hidden;">

  <div>
    <Family :activeIndex="'home'"></Family>
  </div>
  <div class="body">
    <div class="container">
      <div class="box">
        <img src="./../../public/image/1.jpg" alt="" />
      </div>

      <div class="box">
        <img src="./../../public/image/2.jpg" alt="" />
      </div>

      <div class="box">
        <img src="./../../public/image/3.jpg" alt="" />
      </div>

      <div class="box">
        <img src="./../../public/image/4.jpg" alt="" />
      </div>

      <div class="box">
        <img src="./../../public/image/5.jpg" alt="" />
      </div>

      <div class="box">
        <img src="./../../public/image/6.jpg" alt="" />
      </div>
    </div>
  </div>

</div>
</template>

<script setup>
import { ref } from 'vue';
import Family from "../comment/family.vue";

</script>

<style scoped>
/* *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

.body {
  display: flex;
  flex: 2;
  justify-content: center;
  align-items: center;
  background-color: #1a252c;
  width: 100vw;
  height: 100vh;

}

.container {
  position: relative;
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  transform-style: preserve-3d;
  width: 100vw;
  height: 200px;
  margin-left: 150px;
}

.container .box {
  width: 200px;
  height: 200px;
  position: relative;
  transition: 0.5s;
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0002);
}

.container .box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container:hover > :not(:hover) {
  /* margin: 0 -20px; */
  filter: drop-shadow(0 0 12px #000) drop-shadow(0 0 12px #000);
  transform: perspective(500px) rotateY(45deg) scale(0.95); 
}

.container .box:hover ~ .box{
  transform: perspective(500px) rotateY(-45deg) scale(0.95); 
}

.container .box:hover{
  transform: perspective(500px) rotateY(0) scale(1.5); 
  
}
</style>
